/**
 * login api
 */
import $http from '../../http/http'

/**
 * 注册
 * 
 * @param {注册请求数据} data 
 */
export const register = data => {
    return $http({
        method: "post",
        url: "register",
        data
    });
}

/**
 * 常规方式登录
 * 
 * @param {login入参} data 
 */
export const login = data => {
    return $http({
        method: "post",
        url: "login",
        data
    });
}

/**
 * 手机验证码快捷登录
 * 
 * @param {快捷登录入参} data 
 */
export const quickLogin = data => {
    return $http({
        method: "post",
        url: "quickLogin",
        data
    });
}

/**
 * 退出登录
 */
export const logout = () => {
    return $http({
        method: "get",
        url: "logout",
        params: {
        }
    });
}